package ch1;

import java.util.Scanner;

public class Zuoye03095 {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入有几个数列：");
        int a=scan.nextInt();
        int b=1,c=0;
        for (int i=0;i<a;i++){
            System.out.println(b+",");
            b=b+c;
            c=b-c;
        }
    }
}
